<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libdrm-2.4.100
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;25.&nbsp;X Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libhandy.html" title=
          "Libhandy-0.0.11">Prev</a>
          <p>
            Libhandy-0.0.11
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libepoxy.html" title=
          "libepoxy-1.5.4">Next</a>
          <p>
            libepoxy-1.5.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="lib.html" title=
          "Chapter&nbsp;25.&nbsp;X Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libdrm" name="libdrm"></a>libdrm-2.4.100
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libdrm
        </h2>
        <p>
          <span class="application">libdrm</span> provides a user space
          library for accessing the DRM, direct rendering manager, on
          operating systems that support the ioctl interface. libdrm is a
          low-level library, typically used by graphics drivers such as the
          Mesa DRI drivers, the X drivers, libva and similar projects.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://dri.freedesktop.org/libdrm/libdrm-2.4.100.tar.bz2">https://dri.freedesktop.org/libdrm/libdrm-2.4.100.tar.bz2</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: f47bc87e28198ba527e6b44ffdd62f65
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 836 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 12 MB (with tests)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU (add 0.8 SBU for
                tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          libdrm Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="x7lib.html" title="Xorg Libraries">Xorg
          Libraries</a> (for Intel KMS API support required by Mesa)
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="cairo.html" title=
          "Cairo-1.17.2+f93fc72c03e">Cairo-1.17.2+f93fc72c03e</a> (for
          tests), <a class="xref" href="../general/cmake.html" title=
          "CMake-3.16.4">CMake-3.16.4</a> (could be used to find dependencies
          without pkgconfig files), <a class="xref" href=
          "../pst/docbook.html" title="docbook-xml-4.5">docbook-xml-4.5</a>,
          <a class="xref" href="../pst/docbook-xsl.html" title=
          "docbook-xsl-nons-1.79.2">docbook-xsl-1.79.2</a> and <a class=
          "xref" href="../general/libxslt.html" title=
          "libxslt-1.1.34">libxslt-1.1.34</a> (to build manual pages),
          <a class="xref" href="../general/libatomic_ops.html" title=
          "libatomic_ops-7.6.10">libatomic_ops-7.6.10</a> (required by
          architectures without native atomic operations), <a class="xref"
          href="../general/valgrind.html" title=
          "Valgrind-3.15.0">Valgrind-3.15.0</a>, and <a class="ulink" href=
          "http://cunit.sourceforge.net/">CUNIT</a> (for AMDGPU tests)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libdrm">http://wiki.linuxfromscratch.org/blfs/wiki/libdrm</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libdrm
        </h2>
        <p>
          Install <span class="application">libdrm</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">mkdir build &amp;&amp;
cd    build &amp;&amp;

meson --prefix=$XORG_PREFIX -Dudev=true &amp;&amp;
ninja</kbd>
</pre>
        <p>
          To check the results, issue <span class="command"><strong>ninja
          test</strong></span>. One test, 'threaded' in the nouveau
          subdirectory, is known to fail with a 30 second timeout.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">ninja install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>-Dudev=true</code></em>: This parameter
          enables support for using <span class="application">Udev</span>
          instead of <span class="command"><strong>mknod</strong></span>.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libdrm_amdgpu.so, libdrm_intel.so,
              libdrm_nouveau.so, libdrm_radeon.so, libdrm.so, and
              libkms.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/libdrm, /usr/include/libkms,
              and /usr/share/libdrm</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="libdrm_amdgpu" name=
                    "libdrm_amdgpu"></a><span class="term"><code class=
                    "filename">libdrm_amdgpu.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the AMDGPU specific Direct Rendering Manager
                    functions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libdrm_intel" name="libdrm_intel"></a><span class=
                    "term"><code class=
                    "filename">libdrm_intel.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the Intel specific Direct Rendering Manager
                    functions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libdrm_nouveau" name=
                    "libdrm_nouveau"></a><span class="term"><code class=
                    "filename">libdrm_nouveau.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the open source nVidia (Nouveau) specific Direct
                    Rendering Manager functions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libdrm_radeon" name=
                    "libdrm_radeon"></a><span class="term"><code class=
                    "filename">libdrm_radeon.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the AMD Radeon specific Direct Rendering Manager
                    functions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libdrm-lib" name="libdrm-lib"></a><span class=
                    "term"><code class="filename">libdrm.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the Direct Rendering Manager API functions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libkms" name="libkms"></a><span class=
                    "term"><code class="filename">libkms.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains API functions for kernel mode setting
                    abstraction.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-15 20:23:35 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libhandy.html" title=
          "Libhandy-0.0.11">Prev</a>
          <p>
            Libhandy-0.0.11
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libepoxy.html" title=
          "libepoxy-1.5.4">Next</a>
          <p>
            libepoxy-1.5.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="lib.html" title=
          "Chapter&nbsp;25.&nbsp;X Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
